package com.situ.day2;

//实体类：和数据库中表一一对应
//类的外部
public class Student {
    //属性 field
    int id;
    String name;
    int age;
    String gender;
    double money;

    public String getInfo() {
        return "Student: {id="+id+",name="+name+",age="+age+",gender="+gender+"}";
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", money=" + money +
                '}';
    }
}
